//
//  LLHttpConstan.h
//  lrlzapp
//
//  Created by dl on 16/2/25.
//  Copyright © 2016年 lrlz. All rights reserved.
//

/**
 *  所有的Http访问的URL按照类别放置，注意命名规范，要有实际意义，单词之间采用下划线，全大写，注意格式
 */

#ifndef LLHttpConstan_h
#define LLHttpConstan_h

//------------------------------ Base Url -------------------------------------------------
// 正式链接
#define BD_HTTPS_BASE_URL_OLD               @"http://lrlz.wx.jaeapp.com/app/inter/"
#define BD_HTTPS_BASE_URL_NEW               @"http://lrlzapp.wx.jaeapp.com/app/inter/"

// 线上测试，测试
//#define BD_HTTPS_BASE_URL_OLD               @"http://lrlz-1.wx.jaeapp.com/app/inter/"
//#define BD_HTTPS_BASE_URL_NEW               @"http://lrlzapp-1.wx.jaeapp.com/app/inter/"

// 后续测试的统一环境地址
//#define BD_HTTPS_BASE_URL_NEW               @"http://192.168.0.10:8888/app/inter/"
//#define BD_HTTPS_BASE_URL_OLD               @"http://192.168.0.133:8000/AppServer/app/inter/"

//------------------------------ Login ---------------------------------------------------
// 登录
#define USER_LOGIN_URL                  @"login.ss"
// 注册
#define USER_DONEREG_URL                @"doneRegister.ss"
// 预注册
#define USER_PREREG_URL                 @"preReg.ss"
// 忘记密码
#define USER_PRESETPWD_URL              @"preSetStrPwd.ss"
// 登录广告页
#define URL_LRLZ_ADV                    @"getAppWelcomePage.ss"

//------------------------------ new login -----------------------------------------------
// 新版登陆
#define USER_SMS_LOGIN                  @"smsLogin.ss"
// 查询授权
#define QUERY_USER_AUTH                 @"queryUserAuth.ss"
// 绑定手机
#define BIND_USER_AUTH                  @"saveUserAuth.ss"


// 注册前采集用户信息
#define URL_USER_MESSAGE                @"saveUserRegisterMonitor.ss"

// 需要删除的
#define URL_USER_LOGIN                  @"v1/users/login"
#define URL_USER_REGISTER               @"v1/users/register"


//------------------------------ Portal ---------------------------------------------------
//首页
#define URL_HOME_LUNBO                  @"getActivityList.ss"
//热销榜单
#define URL_HOT_LISTS                   @"getHotSalesList.ss"
// 获取品牌
#define URL_LRLZ_BRANDLIST              @"getBrandLists.ss"
//活动详情
#define URL_ACTVITY_DETAIL              @"getActivityDetail.ss"


//------------------------------ Category -------------------------------------------------
// 分类
#define URL_LRLZ_FILTER                 @"getFilter.ss"


//------------------------------ Exclusive ------------------------------------------------
// ？
#define URL_LRLZ_ZHUANXIANG             @"getActivityList.ss"
#define URL_LRLZ_ZHUANXIANG_LIST        @"getPointProductList.ss"
// ?
#define URL_LRLZ_PRODETAIL              @"getProDetail.ss"


//------------------------------ Cart -----------------------------------------------------
// 购物车图片
#define SHOPPING_CART_BG_IMAGE_URL      @"http://m.lrlz.com/h5/lrlz_app_web/version_1_3/images/shopping_cart_bg.png"
//------------------------------ Order ----------------------------------------------------
// 查询专享订单
#define QUERYORDER_ZHUANXIANG           @"queryOrder_zhuanxiang.ss"
// 创建专享订单
#define CREATEORDER_ZHUANXIANG          @"createOrder_zhuanxiang.ss"
// 订单确认
#define CONFIRM_RECECIVE_GOODS          @"signOrder.ss"
// 取消订单
#define CANEL_CONFIRMORDER_ZHUANXIANG   @"canel_confirmOrder.ss"
// 热线
#define URL_HOTLINE                     @"app/inter/getHotline.ss"
// 增加金币
#define ADD_GOLD_COIN_URL               @"addGoldCoin.ss"
// 快递物流信息
#define URL_WULIU                       @"app/inter/getExpressInfo.ss"


//------------------------------ Goods ----------------------------------------------------
//商品详情
#define URL_PRODUVT_iNFOR               @"getProDetail.ss"
// 购买商品信息
#define URL_GOODDETAILS                 @"http://crm-api.lrlz.com/api_app/api_main.py"
//搜索商品
#define URL_SEARCH_Product              @"searchProductList.ss"
// 获取商品SKU
#define URL_LRLZ_SKUINFO                @"goToGetSkuInfo.ss"
// 获取商品评价
#define URL_LRLZ_PRODUCTCOMMENT         @"getProductCommentList.ss"
// 获取商品更多信息
#define URL_LRLZ_PRODUCTMORE            @"getMoreProductDetail.ss"


//------------------------------ Profile --------------------------------------------------
// 获取用户基本信息
#define URL_USER_INFOR                  @"app/inter/getUserInfo.ss"
// 修改用户昵称
#define URL_USER_NAME                   @"app/inter/modifyNick.ss"
//我的优惠码 分享
#define URL_MYINVITECODE_SHARE          @"http://lrlz.wx.jaeapp.com/app/inter/queryPromoCode.ss?appKey=%@&token=%@&appVer=%@"
// 我的优惠券
#define URL_LRLZ_PREFERENTIAL           @"searchMyPreferentialList.ss"
// 上传头像
#define URL_USER_UPDATE                 @"app/inter/uploadedPic.ss"
// 修改密码
#define USER_DONESETPWD_URL             @"doneSetStrPwd.ss"

// 我的邀请码
#define URL_MY_INVITECODE               @"inputPromoCode.ss"

// 礼包
#define Url_Lrlz_Gift                   @"getShareRedPaperList.ss"
// 生成红包给用户
#define URL_LRLZ_CREATESHAREREDPAPER    @"createShareRedPaperByUser.ss"

//保存地址
#define URL_SAVE_USER_ADRESS            @"saveUserAddress.ss"
//保存地址
#define URL_SAVE_USER_ADRESS            @"saveUserAddress.ss"
//查询地址
#define URL_CHECK_ADRESS                @"getUserAddressList.ss"
#define URL_DELETE_ADDRESS              @"deleteUserAddress.ss"
// ??
#define URL_LRLZ_USERADDRESS            @"getUserAddressList.ss"

// 联系客服（旺信）
#define appServiceUrl                   @"%@?user_uuid=%@&token=%@&nick=%@&appkey=%@&appver=%@&phone=%@&platform=iOS&identifier=%@"
// 绑定用户（旺信）
#define URL_BINDUSER                    @"bindUser.ss"

#define URL_SYNC_SERVER_TIME            @"http://z.lrlz.com/time.py"

//------------------------------ Taobao ---------------------------------------------------
// 绑定淘宝账号
#define BINDING_TAOBAO_URL              @"boundTaoBaoAccount.ss"
// 解绑淘宝账号
#define UNBINDING_TAOBAO_URL            @"unboundTaoBaoAccount.ss"


//------------------------------ H5 -------------------------------------------------------
//客服
#define URL_SERVICE                     @"http://m.lrlz.com/h5/lrlz_app_web/version_1_3/kefu/index.html"
// 注册？
#define URL_WEB_WANT_CODE               @"http://panda.lrlz.com/wap/getcode.html"
// 淘宝授权页
#define URL_WEB_TAOBAO_AUTHORIZE        @"https://oauth.taobao.com/authorize?response_type=token&client_id=23078505&view=wap"

// 使用帮助
#define URL_WEB_HELP                    @"http://202.91.241.199/h5/lrlz_app_web/help/"
// 关于我们
#define URL_WEB_ABOUT                   @"http://m.lrlz.com/h5/lrlz_app_web/version_1_3/about/index.html"
//意见反馈
#define URL_FeedBack                    @"http://m.lrlz.com/h5/lrlz_app_web/version_1_3/about/jianyi.html"
//品牌专柜
#define URL_BRAND_SHOP                  @"http://m.lrlz.com/h5/lrlz_app_web/version_1_3/zhuangui/index.html"
//H5    排行榜
#define URL_BANK_LIST                   @"http://m.lrlz.com/h5/lrlz_app_web/version_1_3/rank/index.html"
// 我的优惠码
#define appShareUrl                     @"http://m.lrlz.com/h5/lrlz_app_web/version_1_3/share/ma.html"
//我的礼包分享
#define Url_Gift_Share                  @"http://m.lrlz.com/h5/activity/gifts/index.html?user_uuid=%@&redPaper_id=%@"
//赚取金币
#define URL_OBTAIN_GOLD                 @"http://m.lrlz.com/h5/lrlz_app_web/version_1_3/suject/index.html"

//丽人丽妆官方旗舰店
#define URL_LRLZ_SHOP                   @"https://lrlz.tmall.com/?spm=a1z10.3-b.w5001-10742520611.5.b8PQOd&scene=taobao_shop"
//丽人丽妆承诺
#define URL_LRLZ_COMMITMENT             @"http://m.lrlz.com/h5/lrlz_app_web/version_1_3/about/chengnuo.html"
// 规则说明
#define URL_WEB_RULE                    @"http://m.lrlz.com/h5/lrlz_app_web/version_1_3/share/guize.html"


//------------------------------ Others ---------------------------------------------------
#define STRING_REPLACE(str, replace) [str stringByReplacingOccurrencesOfString:@":id" withString:replace]
// 需要缓存的H5页面地址
#define URL_LRLZ_H5_NEEDCACHE_ARR [NSArray arrayWithObjects:URL_BANK_LIST, URL_BRAND_SHOP, nil]
// 需要缓存的图片后缀
#define SUBFIX_OF_IMGS [NSArray arrayWithObjects:@".jpg", @".jpeg", @".png", @".bmp", @".jpeg2000", @".ico", nil]
// 需要缓存的H5的其他资源
#define SUBFIX_OF_H5_OTHER_RESOURCES [NSArray arrayWithObjects:@".css", @".js", nil]


//------------------------------ new inteface ---------------------------------------------------
// 新版本所有的接口的数组
#define URL_NEW_INTEFACE_ARR            @[URL_CHANNEL_AC_LIST, URL_CHANNEL_AC_ITEM_LIST, URL_CHANNEL_AC_ACTIVITY_LIST, URL_GOODS_SEARCH, URL_GOODS_HOT_SEARCH_WORDS, URL_VIP_COMMEND_LIST]

//------------------------------ mall -------------------------------------------------------
#define URL_CHANNEL_AC_LIST                @"ac/ac_list.hh"
#define URL_CHANNEL_AC_ITEM_LIST           @"ac/ac_item_list.hh"            // 活动列表，该接口会返回当前活动所对应的信息（比如分类会返回分类信息等..）
#define URL_CHANNEL_AC_ACTIVITY_LIST       @"ac/ac_activity_list.hh"       // 只返回活动列表

// 新版本的搜索
#define URL_GOODS_SEARCH                @"search.hh"
#define URL_GOODS_HOT_SEARCH_WORDS      @"hot_search_words.hh"

//------------------------------ vip -------------------------------------------------------
#define URL_VIP_COMMEND_LIST            @"product/enjoy_list.hh"

//------------------------------ new inteface ---------------------------------------------------

#endif /* LLHttpConstan_h */
